package com.dp.factory.abstractFactory;

public class MyTest {

    public static void main(String[] args) {
        AbstractFactory factory = new MiPhoneFactory();
        Phone phone = factory.createPhone();
        Pad pad = factory.createPad();
        phone.call();
        pad.play();
    }
}
